package com.bootdo.units.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.units.dao.UnitsDao;
import com.bootdo.units.domain.UnitsDO;
import com.bootdo.units.service.UnitsService;



@Service
public class UnitsServiceImpl implements UnitsService {
	@Autowired
	private UnitsDao unitsDao;
	
	@Override
	public UnitsDO get(Integer id){
		return unitsDao.get(id);
	}
	
	@Override
	public List<UnitsDO> list(Map<String, Object> map){
		return unitsDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return unitsDao.count(map);
	}
	
	@Override
	public int save(UnitsDO units){
		return unitsDao.save(units);
	}
	
	@Override
	public int update(UnitsDO units){
		return unitsDao.update(units);
	}
	
	@Override
	public int remove(Integer id){
		return unitsDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return unitsDao.batchRemove(ids);
	}

	@Override
	public List<UnitsDO> getAllUnitsName() {
		return  unitsDao.getAllUnitsName();
	}

}
